<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: li'tian'yu
  Date: 2023/11/7
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <td>编号</td>
        <td>姓名</td>
        <td>部门</td>
        <td>生日</td>
        <td>操作</td>
    </tr>
    <c:forEach items="${userList}" var="list">
        <tr>
            <td>${list.number}</td>
            <td>${list.name}</td>
            <td>${list.department}</td>
            <td>${list.birthday}</td>
            <td>
                <a onclick="return confirm('确定删除吗?')" href="${pageContext.request.contextPath}/employee/del?id=${list.id}">删除</a>
            </td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
